(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/user/register" ], {
    "2f20": function(e, t, n) {},
    "321b": function(e, t, n) {
        n.d(t, "b", function() {
            return r;
        }), n.d(t, "c", function() {
            return o;
        }), n.d(t, "a", function() {});
        var r = function() {
            this.$createElement;
            this._self._c;
        }, o = [];
    },
    "7d8f": function(e, t, n) {
        n.r(t);
        var r = n("321b"), o = n("a71c");
        for (var i in o) "default" !== i && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(i);
        n("bf8b");
        var u = n("f0c5"), c = Object(u.a)(o.default, r.b, r.c, !1, null, "31bab646", null, !1, r.a, void 0);
        t.default = c.exports;
    },
    "940b": function(e, t, n) {
        (function(e) {
            n("1067"), r(n("66fd"));
            var t = r(n("7d8f"));
            function r(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = n, e(t.default);
        }).call(this, n("543d").createPage);
    },
    a71c: function(e, t, n) {
        n.r(t);
        var r = n("b09e"), o = n.n(r);
        for (var i in r) "default" !== i && function(e) {
            n.d(t, e, function() {
                return r[e];
            });
        }(i);
        t.default = o.a;
    },
    b09e: function(e, t, n) {
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var r = n("a71e"), o = n("7a6d"), i = n("a461"), u = n("26cb");
            function c(e, t) {
                var n = Object.keys(e);
                if (Object.getOwnPropertySymbols) {
                    var r = Object.getOwnPropertySymbols(e);
                    t && (r = r.filter(function(t) {
                        return Object.getOwnPropertyDescriptor(e, t).enumerable;
                    })), n.push.apply(n, r);
                }
                return n;
            }
            function a(e, t, n) {
                return t in e ? Object.defineProperty(e, t, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = n, e;
            }
            !function(e) {
                e && e.__esModule;
            }(n("03b8"));
            var f = {
                data: function() {
                    return {
                        textPhone: "",
                        textCode: "",
                        btnText: "",
                        passWord: "",
                        btnwz: "获取验证码",
                        time: 60,
                        timer: "",
                        value: "phone",
                        valueText: "验证码登录",
                        backUrl: "",
                        registered: !1
                    };
                },
                onLoad: function(e) {
                    this.backUrl = decodeURIComponent(e.url);
                },
                computed: function(e) {
                    for (var t = 1; t < arguments.length; t++) {
                        var n = null != arguments[t] ? arguments[t] : {};
                        t % 2 ? c(Object(n), !0).forEach(function(t) {
                            a(e, t, n[t]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c(Object(n)).forEach(function(t) {
                            Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
                        });
                    }
                    return e;
                }({}, (0, u.mapGetters)([ "configs", "user", "mainColor" ])),
                mounted: function() {
                    this.btnText = this.mainColor;
                },
                methods: {
                    getCode: function() {
                        var t = this;
                        if ((0, r.isEmpty)(this.textPhone)) return e.showToast({
                            title: "请填写手机号码",
                            icon: "",
                            duration: 2e3
                        });
                        if (!(0, r.isPhoneNumber)(this.textPhone)) return e.showToast({
                            title: "请填写正确的手机号码",
                            icon: "",
                            duration: 2e3
                        });
                        if ("获取验证码" !== t.btnwz) return !1;
                        var n = {
                            phone: this.textPhone
                        };
                        (0, o.phoneCode)(n).then(function(e) {}), t.getNumCode(t.time), t.timer = setInterval(function() {
                            t.getNumCode(t.time--);
                        }, 1e3);
                    },
                    getNumCode: function(e) {
                        var t = this;
                        e <= 0 ? (clearInterval(t.timer), t.btnText = "grey", t.btnwz = "获取验证码", t.time = 60) : (t.btnText = "#ccc", 
                        t.btnwz = "重新发送(" + e + ")");
                    },
                    codeLogin: function() {
                        e.reLaunch({
                            url: "/pages/user/mobileLanding"
                        });
                    },
                    exRegistere: function() {
                        var t = this, n = {
                            phone: t.textPhone,
                            password: t.passWord,
                            phoneCode: t.textCode,
                            pid: 0
                        };
                        (0, i.phoneReg)(n).then(function(t) {
                            e.reLaunch({
                                url: "/pages/user/mobileLanding"
                            });
                        });
                    }
                }
            };
            t.default = f;
        }).call(this, n("543d").default);
    },
    bf8b: function(e, t, n) {
        var r = n("2f20");
        n.n(r).a;
    }
}, [ [ "940b", "common/runtime", "common/vendor" ] ] ]);